/*    */ package com.lmpop.trade.iputil;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ import java.net.URL;
/*    */ import java.security.CodeSource;
/*    */ import java.security.ProtectionDomain;
/*    */ 
/*    */ public class IPtest
/*    */ {
/*    */   public static void main(String[] args)
/*    */   {
/*  6 */     IPtest ipTest = new IPtest();
/*  7 */     String path = ipTest.getClass().getProtectionDomain().getCodeSource().getLocation().getPath();
/*    */ 
/*  9 */     if (path.indexOf("WEB-INF") > 0) {
/* 10 */       path = path.substring(1, path.indexOf("/WEB-INF/"));
/*    */     }
/* 12 */     path = path + "/qqwry";
/* 13 */     System.out.println(path);
/*    */ 
/* 15 */     IPSeeker ip = new IPSeeker("QQWry.Dat", path);
/*    */ 
/* 18 */     System.out.println(ip.getIPLocation("58.20.43.13").getCountry());
/* 19 */     System.out.println(ip.getIPLocation("58.20.43.13").getArea());
/*    */   }
/*    */ }

/* Location:           F:\电商\commons-utils.jar
 * Qualified Name:     com.lmpop.trade.iputil.IPtest
 * JD-Core Version:    0.6.0
 */